﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Activity.Model
{
    public class TimeAnalysisReportModel
    {
        public class CoreModel
        {
            public string CompanyID { get; set; }
            public string OperationAreaID { get; set; }
            public string OperationAreaName { get; set; }
            public string SaleDate { get; set; }
            public decimal? SaleAmount { get; set; }
            public decimal? SaleAmount2 { get; set; }
            public decimal? SaleAmount3 { get; set; }
            public int? SaleQty { get; set; }
            public int? SaleQty3 { get; set; }
            public int? SaleCount { get; set; }
            public int? SaleCount2 { get; set; }
            public int? SaleCount3 { get; set; }
            public int? KpiQty { get; set; }
            public int? KpiQty2 { get; set; }
            public decimal? SaleKdj { get; set; }
            public decimal? Closing { get; set; }
            public decimal? SalelDv { get; set; }
            public decimal? Discount { get; set; }
            public decimal? SaleJdj { get; set; }
            public int? ShopCount { get; set; }
            public decimal? Price { get; set; }
        }

        public class NeceModel: CoreModel
        {
            public string Week { get; set; }
            public decimal NeighborhoodCom_SaleAmount { get; set; }
            public decimal NeighborhoodCom_SaleQty { get; set; }
            public decimal NeighborhoodCom_SaleCount { get; set; }
            public decimal NeighborhoodCom_KpiQty { get; set; }
            public decimal NeighborhoodCom_SaleKdj { get; set; }
            public decimal NeighborhoodCom_Closing { get; set; }
            public decimal NeighborhoodCom_SalelDv { get; set; }
            public decimal NeighborhoodCom_Discount { get; set; }
            public decimal NeighborhoodCom_SaleJdj { get; set; }
            public decimal WeekCom_SaleAmount { get; set; }
            public decimal WeekCom_SaleQty { get; set; }
            public decimal WeekCom_SaleCount { get; set; }
            public decimal WeekCom_KpiQty { get; set; }
            public decimal WeekCom_SaleKdj { get; set; }
            public decimal WeekCom_Closing { get; set; }
            public decimal WeekCom_SalelDv { get; set; }
            public decimal WeekCom_Discount { get; set; }
            public decimal WeekCom_SaleJdj { get; set; }
        }

        public class ListModel
        {
            public string OperationAreaName { get; set; }
            public IList<IGrouping<string, NeceModel>> group { get; set; }
        }
    }
}
